<?php
/**
 * 导航模型层
 * 
 * @copyright 	Copyright (c) 2011 thinkapk.com All rights reserved.
 * @package 	ThinkAPK_Model
 * @link 		http://www.thinkapk.com/
 * @author 		richie <richbossman@163.com>
 * @version 	$Id: NavModel.class.php 7276 2011-04-21 08:00:23Z richie $
 * 
 */
class NavModel extends CommonModel {
	
	/**
	 * 取得指定位置的导航
	 *
	 * @param strint $type middle,top,bottom
	 * @return array
	 */
	public function get($type='middle'){
		$nav = $this->where("ifshow=1 AND type='$type'")->field('name,opennew,url')->order('vieworder ASC')->findAll();
		return $nav;
	}
}
?>